import requests

from common.Ihrm_get_empId import get_Emp_Id
from common.result_token import Ihrm_token
from config import TEST_ENV


# 查询员工
class Ihrm_Emp_select:
    @classmethod
    def Ihrm_slecet_Api(cls):
        resp = requests.get(url=f"{TEST_ENV}/api/sys/user/{get_Emp_Id()}",
                            headers={"Authorization":Ihrm_token()} )
        return resp
    @classmethod
    def Ihrm_select_Api_absent(self,Emp_absent_Id):
        resp = requests.get(url=f"{TEST_ENV}/api/sys/user/{Emp_absent_Id}",
                            headers={"Authorization": Ihrm_token()})



if __name__ == '__main__':
    print(Ihrm_Emp_select.Ihrm_slecet_Api().json())


